package com.jkoss.wine.shop.service.impl;

import com.jkoss.wine.shop.entity.ProductInventory;
import com.jkoss.wine.shop.mapper.ProductInventoryMapper;
import com.jkoss.wine.shop.service.IProductInventoryService;
import com.baomidou.mybatisplus.mapper.SqlHelper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * 服务实现类
 * 
 * @Author 周华军
 * @Version 1.0, 2018-10-12
 * @See
 * @Since com.jkoss.wine.shop.service.impl
 * @Description: TODO
 */
@Service
public class ProductInventoryServiceImpl extends ServiceImpl<ProductInventoryMapper, ProductInventory> implements IProductInventoryService {

	@Override
	public Page selectVoByProductInventoryPage(Page page, Wrapper wrapper) {
		// TODO Auto-generated method stub
		SqlHelper.fillWrapper(page, wrapper);
		page.setRecords(baseMapper.selectVoByProductInventoryPage(page, wrapper));
		return page;
	}

}
